package io.xccit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.xccit.pojo.order.Order;
import io.xccit.pojo.param.OrderParam;
import io.xccit.result.AjaxResult;

/**
 * @author CH_ywx
 * @date 2023-09-20
 * @description
 */
public interface IOrderService extends IService<Order> {
    /**
     * 生成/保存订单
     * @param orderParam
     * @return
     */
    AjaxResult saveOrder(OrderParam orderParam);

    /**
     * 根据用户ID查询订单
     * @param userId
     * @return
     */
    AjaxResult listOrder(Integer userId);
}
